import request from '@/utils/request'
const prefix = '/md_sys_org'

export function queryOrgList(data) {
  return request({
    url: `${prefix}/queryOrgList`, method: 'post', data
  })
}

export function getOrgList(data) {
  return request({
    url: `${prefix}/getOrgList`, method: 'post', data
  })
}

export function createOrg(data) {
  return request({
    url: `${prefix}/createOrg`, method: 'post', data
  })
}

export function updateOrg(data) {
  return request({
    url: `${prefix}/updateOrg`, method: 'post', data
  })
}

export function deleteOrg(id) {
  return request({
    url: `${prefix}/deleteOrg/${id}`, method: 'delete'
  })
}
